<%@page import="upcweb.modelo.ClsClub"%>
<%@page import="upcweb.modelo.ClsSolicitud"%>
<%@page import="java.util.ArrayList"%>
    <div class="widget ">
	      			
	      			<div class="widget-header">
	      				<i class="icon-user"></i>
	      				<h3>Solicitudes para Cotizacion</h3>
	  				</div> <!-- /widget-header -->
					
					<div class="widget-content">
                    
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="31">Rango de Fechas :</td>
    <td>
      <input name="t_f1" class='clsFec' value="${f1}" placeholder="dd-mm-aaaa"  type="text" id="t_f1" style="width: 80px;"/>&nbsp;a&nbsp;<input name="t_f2" class='clsFec' value="${f2}"  type="text" placeholder="dd-mm-aaaa" id="t_f2"  style="width: 80px;"/>
   </td>
  </tr>
  <tr>
    <td height="33">Club :</td>
    <td><label>
    <%
    ArrayList<ClsClub> arrClub = (ArrayList<ClsClub>)request.getAttribute("clubs");       
    %>
      <select name="cb_club" id="cb_club">
      <%for(ClsClub club : arrClub){ %>
      <option value="<%=club.getCo_club()%>"><%=club.getNo_club() %></option>
      <%}%>
      </select>
    </label></td>
  </tr>
  <tr>
    <td height="34">Responsable :</td>
    <td><label>
      <input type="text" value="${res}" placeholder="Nombres" name="t_resp" id="t_resp" />
    </label></td>
  </tr>
  <tr>
    <td height="35">&nbsp;</td>
    <td><div align="right"><input type="button" class='btn btn-primary' onclick="searchCotizacion()" value="Buscar Cotizaciones" />
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

                    
<table width="100%" cellpadding="0" cellspacing="0" class="tableCss">
<thead><th>Solicitud</th><th>Fecha</th><th>Club</th><th>Ctd.Personas</th><th>Responsable</th>
<th></th>
</thead>
<tbody>
<%

ArrayList<ClsSolicitud> arrSol = (ArrayList<ClsSolicitud>)request.getAttribute("datos");

for(ClsSolicitud obj:arrSol){
	%>
	<tr><td><%=obj.getNu_solicitud() %></td><td><%=obj.getFe_solicitud() %></td>
	<td><%=obj.getNo_club() %></td><td><%=obj.getQt_personas() %></td><td><%=obj.getUsuario() %></td><td class="tdImg">
	<img title="Cotizar" onClick="verCotizacion('<%=obj.getNu_solicitud() %>')" src="img/icons/tab_icon.png"/>
	</td></tr>

	<%
}

%>
    </tbody>
    <tfoot>
	<tr>
	  <td colspan="5"><img src="img/icons/align_items.png">&nbsp;&nbsp;Se muestran&nbsp;<%=arrSol.size()%>&nbsp;cotizacion(es).</td>
	  <td class="tdImg">&nbsp;</td>
    </tr>
    </tfoot>
</table>
</div>
</div>